diff options
| author | Magnus Ahltorp <map@kth.se> | 2015-11-13 00:22:26 +0100 |
|---|---|---|
| committer | Magnus Ahltorp <map@kth.se> | 2015-11-13 00:22:26 +0100 |
| commit | b30199902dba22d6191a2eaa719957ee0e76bbff (patch) | |
| tree | 096a5b0870b61f22621ef5942df6bb0716bbcfc3 /src/storage.erl | |
| parent | 6eda14bd23c8bdf5ea2064ee9a9c8e92718c5176 (diff) | |
Commit changes to entryhash keyvalue store
Diffstat (limited to 'src/storage.erl')
| -rw-r--r-- | src/storage.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage.erl b/src/storage.erl index 6c38adf..ec70de6 100644 --- a/src/storage.erl +++ b/src/storage.erl @@ -27,6 +27,7 @@ request(post, "plop/v1/storage/entrycommitted", Input) -> EntryHash = base64:decode(proplists:get_value(<<"entryhash">>, PropList)), LeafHash = base64:decode(proplists:get_value(<<"treeleafhash">>, PropList)), db:add_entryhash(LeafHash, EntryHash), + db:commit_entryhash(), success({[{result, <<"ok">>}]}) end; request(get, "plop/v1/storage/fetchnewentries", _Input) -> |
