commit | b7b17de268ac64309f3fbf0413541d03b0fad76e | [log] [tgz] |
---|---|---|
author | Jin Qian <jinqian@google.com> | Thu Nov 09 15:07:18 2017 -0800 |
committer | Jin Qian <jinqian@google.com> | Thu Nov 09 17:24:58 2017 -0800 |
tree | 87c64ee40a9fc653968daf4a3d173e1600215f99 | |
parent | d1d3da0a62ad97f33e4062c15c3795564f3b0658 [diff] |
storaged: remove protos from storaged class protobuf is only needed when serializing/deserializing data. Instead of maintaining a permanent buffer in storaged object, move the container to stack so that the buffer is released when we don't need it. In addition, we don't need to clear the buffer before updating it. Also added a function to clear user io history when the user is removed. Bug: 63740245 Change-Id: Ia5d19b9a0c3f92a93b061a56be89bb0b958a2a29