Skip to content

Commit a015bd0

Browse files
author
Jon Ludlam
committed
Merge pull request xapi-project#1579 from ravippandey/CA-122467
CA-122467: Fix for setting the right value of memory_actual after vm is ...
2 parents c124d15 + 2485af8 commit a015bd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ocaml/xapi/monitor_dbcalls.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ let pifs_and_memory_update_fn xc =
165165
if (Db.VM.get_resident_on ~__context ~self:vm =
166166
Helpers.get_localhost ~__context)
167167
then Db.VM_metrics.set_memory_actual ~__context ~self:vmm ~value:memory
168+
else clear_cache_for_vm uuid
168169
) vm_memory_changes;
169170
Monitor_master.update_pifs ~__context host pif_changes;
170171
let localhost = Helpers.get_localhost ~__context in

0 commit comments

Comments
 (0)