Skip to content

Commit d58da1d

Browse files
committed
refactor the by comment
1 parent 87b9558 commit d58da1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meta/api/src/schema_api_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2145,8 +2145,8 @@ async fn remove_table_copied_files(
21452145
let (lock_key_seq, lock_op): (_, Option<TableCopiedFileLock>) =
21462146
get_struct_value(kv_api, &lock_key).await?;
21472147

2148+
condition.push(txn_cond_seq(&lock_key, Eq, lock_key_seq));
21482149
if let Some(lock) = lock_op {
2149-
condition.push(txn_cond_seq(&lock_key, Eq, lock_key_seq));
21502150
if_then.push(txn_op_put(&lock_key, serialize_struct(&lock)?)); // copied file lock key
21512151

21522152
// List files by tenant, db_name, table_name

0 commit comments

Comments
 (0)