ibessonov commented on code in PR #5572: URL: https://github.com/apache/ignite-3/pull/5572#discussion_r2028605320
########## modules/metastorage/src/main/java/org/apache/ignite/internal/metastorage/server/persistence/RocksDbKeyValueStorage.java: ########## @@ -565,23 +565,15 @@ public void put(byte[] key, byte[] value, KeyValueUpdateContext context) { @Override public void setIndexAndTerm(long index, long term) { - rwLock.writeLock().lock(); - - try (WriteBatch batch = new WriteBatch()) { - data.put(batch, INDEX_AND_TERM_KEY, longsToBytes(0, index, term)); - - db.write(writeOptions, batch); + try { + db.put(writeOptions, INDEX_AND_TERM_KEY, longsToBytes(0, index, term)); Review Comment: :< -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org