Issue 8417 - mdb_load could use an option to specify the mapsize.
Summary: mdb_load could use an option to specify the mapsize.
Status: UNCONFIRMED
Alias: None
Product: LMDB
Classification: Unclassified
Component: liblmdb (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-03 11:48 UTC by eriixblaike+git@gmail.com
Modified: 2020-03-22 22:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description eriixblaike+git@gmail.com 2016-05-03 11:48:18 UTC
Full_Name: Eric R. Monson
Version: git 3fe9678baa1be8067e7e0bbb94007a096952e62c
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (72.193.242.31)


The lack of a mapsize option available in mdb_load can make it inconvenient to
load datasets.  This is particularly true when you are using the plaintext
format specified by '-T', since it has no header you could add an appropriate
mapsize to.  My patch resolves this by adding a mapsize option ('-m') which can
be used to manually specify a mapsize of your choosing, overriding both the
default and any value specified in the header of the database you're loading.

The patch also modifies the man page for mdb_load to reflect the new
functionality.  I don't know if the code is good enough for inclusion, but I
figured providing my solution was better than nothing.

I, Eric Monson, hereby place the following modifications to OpenLDAP Software
(and only these modifications) into the public domain. Hence, these
modifications may be freely used and/or redistributed for any purpose with or
without attribution and/or other notice.

https://eriix.org/download_file/eric-monson-16-05-03.patch
Comment 1 Quanah Gibson-Mount 2017-04-03 18:26:16 UTC
moved from Incoming to Software Enhancements
Comment 2 Quanah Gibson-Mount 2019-06-04 20:48:58 UTC
--On Tuesday, May 03, 2016 12:48 PM +0000 eriixblaike+git@gmail.com wrote:

> I, Eric Monson, hereby place the following modifications to OpenLDAP
> Software (and only these modifications) into the public domain. Hence,
> these modifications may be freely used and/or redistributed for any
> purpose with or without attribution and/or other notice.
>
> https://eriix.org/download_file/eric-monson-16-05-03.patch

This URL is not accessible (requires a login?).  I suggest uploading it to 
our FTP server as documented for contributed patches.

Thanks!

--Quanah



--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>