Prevent desynchronization in "battery remove test".
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 11 Dec 2014 14:38:08 +0000 (15:38 +0100)
committerMaciej J. Karpiuk <m.karpiuk2@samsung.com>
Tue, 17 Feb 2015 10:20:23 +0000 (11:20 +0100)
commitef145d51e7761b2b093300cf2b9e4dde7487abb4
tree76cead8962361b9515af5c0a37fafd7703c9360c
parent025a68daa2d80c3578c67b26e8cdda12f0239a2c
Prevent desynchronization in "battery remove test".

This commit force to save encrypted data as soon as possible.
There is still small time window then desynhronization may happen.
Desynchronization may occure if you take out battery exectly after the
data was saved by ckm and the confirmation was not send to
security-server yet.

Change-Id: Ib4d4f0299001d9c71b13acdcfa136298d942ab6c
src/manager/dpl/core/include/dpl/fstream_accessors.h
src/manager/service/file-system.cpp