]> xenbits.xensource.com Git - xen.git/commit
oxenstored: trim history in the frequent_ops function stable-4.4 staging-4.4
authorThomas Sanders <thomas.sanders@citrix.com>
Tue, 28 Mar 2017 17:57:52 +0000 (18:57 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 5 Apr 2017 14:26:38 +0000 (15:26 +0100)
commit6bf0560e123ec50dd0fab3850effe448504d8604
treed325adbc031f4f7268cb7168ff5b9194f08c38af
parentebd64cd82af09fe71f3b448039d73ad632a5c69d
oxenstored: trim history in the frequent_ops function

We were trimming the history of commits only at the end of each
transaction (regardless of how it ended).

Therefore if non-transactional writes were being made but no
transactions were being ended, the history would grow
indefinitely. Now we trim the history at regular intervals.

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
tools/ocaml/xenstored/history.ml
tools/ocaml/xenstored/transaction.ml
tools/ocaml/xenstored/xenstored.ml