Fix compile error in trasaction_lock_mgr.cc

Summary:
Fix error on mac/windows build since they don't recognize `uint`.
Closes https://github.com/facebook/rocksdb/pull/1624

Differential Revision: D4287139

Pulled By: yiwu-arbug

fbshipit-source-id: b7cc88f
main
Yi Wu 8 years ago committed by Facebook Github Bot
parent ed8fbdb560
commit c26a4d8e8a
  1. 5
      utilities/transactions/transaction_lock_mgr.cc

@ -397,9 +397,10 @@ bool TransactionLockMgr::IncrementWaiters(
const auto* next_ids = &wait_ids;
for (int tail = 0, head = 0; head < txn->GetDeadlockDetectDepth(); head++) {
uint i = 0;
int i = 0;
if (next_ids) {
for (; i < next_ids->size() && tail + i < txn->GetDeadlockDetectDepth();
for (; i < static_cast<int>(next_ids->size()) &&
tail + i < txn->GetDeadlockDetectDepth();
i++) {
queue[tail + i] = (*next_ids)[i];
}

Loading…
Cancel
Save