diff --git a/cartridge/twophase.lua b/cartridge/twophase.lua index c380e3bbc..f5517823a 100644 --- a/cartridge/twophase.lua +++ b/cartridge/twophase.lua @@ -134,8 +134,6 @@ end -- @treturn[2] nil -- @treturn[2] table Error description local function prepare_2pc(upload_id) - local fid = fiber.self():id() - local csw = fiber.info()[fid].csw local data if type(upload_id) == 'table' then -- Preserve compatibility with older versions. @@ -179,11 +177,8 @@ local function prepare_2pc(upload_id) log.warn('%s', err) return nil, err end - local start = fiber.time64() /1e3 + local ok, err = ClusterwideConfig.save(clusterwide_config, path_prepare) - local finish = fiber.time64() /1e3 - local dur = finish - start - log.info("duration of save: %d ms", tonumber(dur)) if not ok and fio.path.exists(path_prepare) then err = Prepare2pcError:new('Two-phase commit is locked') end @@ -193,7 +188,6 @@ local function prepare_2pc(upload_id) return nil, err end vars.prepared_config = clusterwide_config - log.info("prepare phase yields: %d", fiber.info()[fid].csw - csw) return true end