summaryrefslogtreecommitdiff
path: root/src/lib/eolian/eolian_database.h
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-22 15:34:32 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-22 15:37:25 +0100
commit93a64c5eab5d4404b878bead5ea07f13ee2d175f (patch)
tree24da29a661fb6b7f955981e61ba3ab5bedb2c78d /src/lib/eolian/eolian_database.h
parentd9a8fe0fca74dcd67190de381fa3ddc339e4cea2 (diff)
eolian: clean rollback support
Previously, when an error happened in Eolian, the state was left in a presumably unusable and inconsistent condition. This work aims to change that, as all changes are committed into a staging area before being validated and merged back into main state. This is not yet complete, as units and by-file lookups are not currently involved in the rollback. This will change in the subsequent commits. @feature
Diffstat (limited to 'src/lib/eolian/eolian_database.h')
-rw-r--r--src/lib/eolian/eolian_database.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian/eolian_database.h b/src/lib/eolian/eolian_database.h
index 72adf48..a359cdd 100644
--- a/src/lib/eolian/eolian_database.h
+++ b/src/lib/eolian/eolian_database.h
@@ -107,7 +107,7 @@ eolian_object_add(Eolian_Object *obj, Eina_Stringshare *name, Eina_Hash *hash)
107 107
108#define EOLIAN_OBJECT_ADD(tunit, name, obj, memb) \ 108#define EOLIAN_OBJECT_ADD(tunit, name, obj, memb) \
109{ \ 109{ \
110 eolian_object_add(&obj->base, name, tunit->state->unit.memb); \ 110 eolian_object_add(&obj->base, name, tunit->state->staging.memb); \
111 eolian_object_add(&obj->base, name, tunit->memb); \ 111 eolian_object_add(&obj->base, name, tunit->memb); \
112} 112}
113 113