Commit 066c77f4 authored by claes's avatar claes

Return nosuchobj in object(wb_name) if object doesn't exist

parent 503671c3
......@@ -214,6 +214,10 @@ wb_orep* wb_vrepdb::object(pwr_tStatus *sts, wb_name &name)
for (int i = 0; name.hasSegment(i); i++) {
wb_db_name n(m_db, poid, name.normSegment(i));
int rc = n.get(m_db->m_txn);
if (rc) {
*sts = LDH__NOSUCHOBJ;
return 0;
}
poid = n.oid();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment