Implement mechanism assuring integrity of database 39/26639/23
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Wed, 27 Aug 2014 07:18:02 +0000 (09:18 +0200)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Wed, 12 Nov 2014 08:41:13 +0000 (09:41 +0100)
commit0ded5caa100a6802eb2f3e45e7b2073f0cef95eb
tree2ac90d513a4645507ea4f87ac24a86e39cff0122
parentaaf46e4b88c42b633e731d526010ebe2a5197b42
Implement mechanism assuring integrity of database

There is also added mechanism for cleaning up Cynara's database
directory upon loading policies to memory.

There is added test checking whether mechanism behaves as intended.

Change-Id: I926d1aebf394c092e00731b73717e0e1c55bad0c
17 files changed:
packaging/cynara.spec
src/storage/CMakeLists.txt
src/storage/InMemoryStorageBackend.cpp
src/storage/InMemoryStorageBackend.h
src/storage/Integrity.cpp [new file with mode: 0644]
src/storage/Integrity.h [new file with mode: 0644]
test/CMakeLists.txt
test/db/db6/_ [new file with mode: 0644]
test/db/db6/_additional [new file with mode: 0644]
test/db/db6/_additional~ [new file with mode: 0644]
test/db/db6/_~ [new file with mode: 0644]
test/db/db6/buckets [new file with mode: 0644]
test/db/db6/buckets~ [new file with mode: 0644]
test/db/db6/guard [new file with mode: 0644]
test/storage/inmemorystoragebackend/fakeinmemorystoragebackend.h
test/storage/inmemorystoragebackend/inmemeorystoragebackendfixture.h
test/storage/inmemorystoragebackend/inmemorystoragebackend.cpp