Keep an object's id in the record

We have the information there anyway, so don't make us allocate a new
binary every time.
This commit is contained in:
Carlos Martín Nieto
2013-06-05 22:15:40 +02:00
parent 525fae1ee6
commit d21d2cb9b0
5 changed files with 16 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
-record(geef_reference, {handle, name :: binary(), type :: atom(), target :: binary() | geef_oid()}).
-record(geef_oid, {oid}).
-record(geef_object, {type :: atom(), handle}).
-record(geef_object, {type :: atom(), id :: geef_oid(), handle}).
-record(geef_index_entry,
{ctime :: non_neg_integer(), mtime :: non_neg_integer(),
dev :: non_neg_integer(), ino :: non_neg_integer(),