mirror of https://gitee.com/bigwinds/arangodb
Fix registerTransaction in StandaloneTransactionContext.
This commit is contained in:
parent
de7c303c5d
commit
11ace2de3a
|
@ -73,8 +73,9 @@ TRI_transaction_t* StandaloneTransactionContext::getParentTransaction () const {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
int StandaloneTransactionContext::registerTransaction (TRI_transaction_t* trx) {
|
int StandaloneTransactionContext::registerTransaction (TRI_transaction_t* trx) {
|
||||||
TRI_ASSERT(_resolver == nullptr);
|
if (_resolver == nullptr) {
|
||||||
_resolver = new CollectionNameResolver(trx->_vocbase);
|
_resolver = new CollectionNameResolver(trx->_vocbase);
|
||||||
|
}
|
||||||
|
|
||||||
return TRI_ERROR_NO_ERROR;
|
return TRI_ERROR_NO_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue