From b3ecfc8f8419e801e6ea51f8d8d7fd6b7740cb09 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Mon, 1 Nov 2021 11:51:29 +0530 Subject: [PATCH] rgw/dbstore: No need for explicit LOCK in DBStore The current form of DBStore is not suited for multiple writers scenario. Hence no need for explicit mutex lock in DBStore but rather rely on inherent sqlite locking mechanism. Signed-off-by: Soumya Koduri --- src/rgw/store/dbstore/common/dbstore.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/rgw/store/dbstore/common/dbstore.cc b/src/rgw/store/dbstore/common/dbstore.cc index 7cf8c44413b..c771763ff7f 100644 --- a/src/rgw/store/dbstore/common/dbstore.cc +++ b/src/rgw/store/dbstore/common/dbstore.cc @@ -250,17 +250,14 @@ int DB::ProcessOp(const DoutPrefixProvider *dpp, string Op, struct DBOpParams *p int ret = -1; class DBOp *db_op; - Lock(dpp); db_op = getDBOp(dpp, Op, params); if (!db_op) { ldpp_dout(dpp, 0)<<"No db_op found for Op("<Execute(dpp, params); - Unlock(dpp); if (ret) { ldpp_dout(dpp, 0)<<"In Process op Execute failed for fop(" \ <