Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix miscreating column families when opening with the readonly mode (a…
…pache#1645) Currently, kvrocks2redis will read and parse data from the local DB with opening in read-only mode, and it will be failed if the Kvrocks is running on the same DB dir. The root cause is the running Kvrocks would acquire the DB lock and kvrocks2redis would try to acquire this DB lock as well when creating column families. Before applying this patch: ```shell ❯ ./kvrocks2redis -c kvrocks2redis.conf Version: unstable @6350d72 E20230806 23:46:56.435000 18548092 main.cc:151] Failed to create pidfile './kvrocks2redis.pid': File exists ``` After applying this patch: ```shell ❯ ./kvrocks2redis -c kvrocks2redis.conf Version: unstable @6350d72 Start parse increment batch ... ``` This fixes apache#1644.
- Loading branch information