]> xenbits.xensource.com Git - xen.git/commit
oxenstored: trim history in the frequent_ops function
authorThomas Sanders <thomas.sanders@citrix.com>
Tue, 28 Mar 2017 17:57:52 +0000 (18:57 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 4 Jul 2017 09:39:42 +0000 (10:39 +0100)
commit864a269682025a64b6cb7c53fc65d9884ecc342e
tree79249e4a2ec825ae577386d7a046aef3e4dc6df3
parent6a0b420a7a086af21dbcf15172f24ad1af12a1f2
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