2 stage flushing for atomicity. ruby OK
Merge branch 'topic/atomic_flush' of github.com:akiradeveloper/dm-lc into topic/atomic_flush