Several fixes to AOL and tests


It will throw an error "Invalid argument" if passed size 0



Date: Wed, 11 Jun 2014 17:58:25 -0700
From: notifications@github.com
To: OlegDB@noreply.github.com
CC: martijn_gerkes@hotmail.com
Subject: Re: [OlegDB] Several fixes to AOL and tests (#92)

In src/oleg.c:

>      /* Sync and close values file. */
> -    msync(db->values, db->val_size, MS_SYNC);
> -    munmap(db->values, db->val_size);
> +    if (db->val_size > 0) {

Does msync/munmap not work with values of 0, or was this tested before or after 77993aa?


—
Reply to this email directly or view it on GitHub.