Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/iraikov/chicken-lmdb
Browse files Browse the repository at this point in the history
  • Loading branch information
iraikov committed Jun 5, 2016
2 parents 13a0cbe + 6de2a0d commit eee58fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lmdb.scm
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ struct _mdb *_mdb_init(char *fname, int maxdbs, size_t mapsize)
chicken_lmdb_exception (rc, 38, "_mdb_init: error in mdb_env_set_maxdbs");
}
}
printf("mapsize = %zu\n", mapsize);
if (mapsize > 0)
{
if ((rc = mdb_env_set_mapsize(m->env, mapsize)) != 0)
Expand Down Expand Up @@ -340,7 +341,7 @@ int _mdb_stats(struct _mdb *m)


(define lmdb-init0 (foreign-safe-lambda*
nonnull-c-pointer ((nonnull-c-string fname) (int maxdbs) (int mapsize))
nonnull-c-pointer ((nonnull-c-string fname) (int maxdbs) (size_t mapsize))
"C_return (_mdb_init (fname,maxdbs,mapsize));"))
(define (lmdb-init fname #!key (maxdbs 0) (mapsize 0))
(lmdb-init0 fname maxdbs mapsize))
Expand Down
2 changes: 1 addition & 1 deletion lmdb.setup
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
`(,(dynld-name "lmdb") ,(dynld-name "lmdb.import") )

; Assoc list with properties for your extension:
`((version "2.1")
`((version "2.2")
))

0 comments on commit eee58fa

Please sign in to comment.