[CP] Fix transfer SpinRWLock timeout using wrong value bug.

This commit is contained in:
godyangfight 2025-01-02 17:48:13 +00:00 committed by ob-robot
parent 8ef1e91621
commit a833ad60db

View File

@ -2596,7 +2596,7 @@ int ObTransferHandler::offline()
ret = OB_NOT_INIT;
LOG_WARN("ls transfer handler do not init", K(ret));
} else {
const int64_t timeout_us = 1 * 1000 * 1000; //1s;
const int64_t timeout_us = ObTimeUtil::current_time() + 1 * 1000 * 1000; //1s;
bool lock_succ = false;
if (OB_FAIL(transfer_handler_lock_.wrlock(timeout_us))) {
if (ret == OB_TIMEOUT) {