Skip to content
Snippets Groups Projects
Unverified Commit 6ac00009 authored by Marcin Ślusarz's avatar Marcin Ślusarz Committed by GitHub
Browse files

Merge pull request #3961 from osalyk/bug-errno

obj: check if errno is set
parents e13114eb 42c54635
No related branches found
No related tags found
No related merge requests found
......@@ -563,7 +563,7 @@ tx_lane_ranges_insert_def(PMEMobjpool *pop, struct tx *tx,
rdef->offset, rdef->size);
int ret = ravl_emplace_copy(tx->ranges, rdef);
if (ret == EEXIST)
if (ret && errno == EEXIST)
FATAL("invalid state of ranges tree");
return ret;
......
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