Remove useless check for index
This commit is contained in:
parent
f47f8a52b0
commit
1d389239eb
|
@ -435,7 +435,7 @@ public:
|
||||||
{
|
{
|
||||||
if (d_cursor.get(d_key, d_id, MDB_GET_CURRENT))
|
if (d_cursor.get(d_key, d_id, MDB_GET_CURRENT))
|
||||||
d_end = true;
|
d_end = true;
|
||||||
else if (d_on_index && (*d_parent->d_txn)->get(d_parent->d_parent->d_main, d_id, d_data))
|
else if ((*d_parent->d_txn)->get(d_parent->d_parent->d_main, d_id, d_data))
|
||||||
throw LMDBError("Missing id in constructor");
|
throw LMDBError("Missing id in constructor");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue