commit | 98aa26fe691b6ddc1169e8f8ed40e0e9ceced8a8 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Sep 24 18:58:00 2019 -0700 |
committer | Yifan Hong <elsk@google.com> | Wed Sep 25 15:20:50 2019 -0700 |
tree | d50aa2aee0a20525591f24804e97b31bba2a2ec4 | |
parent | ab09a1764b8993191107e8d7b0ffc4c142702589 [diff] |
libsnapshot: refactor CreateUpdateSnapshots This function is too big. Refactor it a bit. - Reorder checks / variable initializations a bit. They are independent of each other, so they can be safely reordered. - Put snapshot creation and initialization to their own functions so that CreateUpdateSnapshots looks shorter. Test: libsnapshot_test Change-Id: I135b415d8e046dd91d31326fe7962ae44be4ccf8