[CP] Fix transfer SpinRWLock timeout using wrong value bug.
This commit is contained in:
parent
8ef1e91621
commit
a833ad60db
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user