Skip to content
Snippets Groups Projects
Commit eb1fffed authored by Dmitry Simonenko's avatar Dmitry Simonenko
Browse files

sophia: previous commit leftover fix

parent 96498131
No related branches found
No related tags found
No related merge requests found
......@@ -287,7 +287,10 @@ SophiaIndex::findByKey(const char *key, uint32_t part_count = 0) const
(void)part_count;
void *obj = ((SophiaIndex *)this)->createObject(key, true, NULL);
void *transaction = db;
if (in_txn())
/* engine_tx might be empty, even if we are in txn context.
*
* This can happen on a first-read statement. */
if (in_txn() && in_txn()->engine_tx)
transaction = in_txn()->engine_tx;
obj = sp_get(transaction, obj);
if (obj == NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment