Commit c966bdc
committed
[enhancement](memtable) merge redundant mutex locks in _flush_memtable_async
The two consecutive lock_guard blocks were locking the same mutex
(_mem_table_ptr_lock) with no operations in between, which is redundant.
This commit merges them into a single lock scope to:
1. Reduce unnecessary lock/unlock overhead
2. Improve code readability1 parent f926421 commit c966bdc
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | 163 | | |
167 | 164 | | |
168 | 165 | | |
| |||
0 commit comments