From e62653acb074573311af3e1fdc5cc041d303c7a8 Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 18 Sep 2024 06:17:12 +0000 Subject: [PATCH] fix sn_async_write for id_mode_backup --- src/storage/blocksstable/ob_storage_object_handle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/blocksstable/ob_storage_object_handle.cpp b/src/storage/blocksstable/ob_storage_object_handle.cpp index 73603e856..17d09febe 100644 --- a/src/storage/blocksstable/ob_storage_object_handle.cpp +++ b/src/storage/blocksstable/ob_storage_object_handle.cpp @@ -301,7 +301,7 @@ int ObStorageObjectHandle::sn_async_write(const ObStorageObjectWriteInfo &write_ LOG_WARN("Fail to aio_write", K(ret), K_(macro_id), K(write_info)); } else { int tmp_ret = OB_SUCCESS; - if (OB_TMP_FAIL(OB_SERVER_BLOCK_MGR.update_write_time(macro_id_))) { + if (macro_id_.is_id_mode_local() && OB_TMP_FAIL(OB_SERVER_BLOCK_MGR.update_write_time(macro_id_))) { LOG_WARN("fail to update write time for macro block", K(tmp_ret), K(macro_id_)); } FLOG_INFO("Async write macro block", K(macro_id_));