Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
palage4a committed Aug 18, 2023
1 parent f3610c0 commit bea3ab4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cartridge/twophase.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit bea3ab4

Please sign in to comment.