server/shadow: Fix incorrect bitmap fragment update.
authorzihao.jiang <zihao.jiang@yahoo.com>
Tue, 4 Jul 2017 15:48:07 +0000 (23:48 +0800)
committerzihao.jiang <zihao.jiang@yahoo.com>
Tue, 4 Jul 2017 15:48:07 +0000 (23:48 +0800)
commit2a65e70d08e2cc979dd5bc99de779b6b77985e90
tree9919352f4ff935eff48dc17e210ac3e2107a0922
parent215fbe8446e9347219f04a5bfe6aa8181ac7db7e
server/shadow: Fix incorrect bitmap fragment update.
Legacy bitmap update might fail with 'fast path update size (xxxxx) exceeds the client's maximum request size (xxxxx)'
Original code might update last fragment with exceeded fragment size incorrectly. Fix the logic to prevent it.
server/shadow/shadow_client.c