1
0
Fork 0

Fix registerTransaction in StandaloneTransactionContext.

This commit is contained in:
Max Neunhoeffer 2014-10-17 15:33:48 +02:00
parent de7c303c5d
commit 11ace2de3a
1 changed files with 3 additions and 2 deletions

View File

@ -73,8 +73,9 @@ TRI_transaction_t* StandaloneTransactionContext::getParentTransaction () const {
////////////////////////////////////////////////////////////////////////////////
int StandaloneTransactionContext::registerTransaction (TRI_transaction_t* trx) {
TRI_ASSERT(_resolver == nullptr);
_resolver = new CollectionNameResolver(trx->_vocbase);
if (_resolver == nullptr) {
_resolver = new CollectionNameResolver(trx->_vocbase);
}
return TRI_ERROR_NO_ERROR;
}