ITS#8324 fix for WRITEMAP
authorHoward Chu <hyc@openldap.org>
Mon, 21 Dec 2015 02:36:20 +0000 (02:36 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 21 Dec 2015 02:36:20 +0000 (02:36 +0000)
commit209b56fead1afe8273db6c714c0a74a9c09b9cf6
tree952c131f23096c5ccc748c642bd1ea876502b679
parent860527f66e461bd34c53e48e8525e11f6652a8b7
ITS#8324 fix for WRITEMAP

We called FlushViewOfFile with (map,mapsize) which worked fine
when we had allocated the entire map already. Now we have to make
sure to only flush as much as was actually written. Add a numpgs
argument to tell how much to flush in env_sync0().
libraries/liblmdb/mdb.c