[med-svn] [Git][med-team/ncbi-blastplus][master] ncbi-blast+ 2.10.0-3: Tweak debian/patches/tune_32bit_lmdb_defaults.

Aaron M. Ucko gitlab at salsa.debian.org
Tue Sep 8 02:22:48 BST 2020



Aaron M. Ucko pushed to branch master at Debian Med / ncbi-blastplus


Commits:
e46881b7 by Aaron M. Ucko at 2020-09-07T21:15:03-04:00
ncbi-blast+ 2.10.0-3: Tweak debian/patches/tune_32bit_lmdb_defaults.

* For 64-bit platforms, use an explicit UL suffix on one factor to avoid
  overflow.
* For 32-bit platforms, avoid tying up quite so much address space, since
  opening a pair of databases is a distinct possibility.
* Generally parenthesize expressions per best macro practice.

- - - - -


2 changed files:

- debian/changelog
- debian/patches/tune_32bit_lmdb_defaults


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,14 @@
+ncbi-blast+ (2.10.0-3) unstable; urgency=medium
+
+  * debian/patches/tune_32bit_lmdb_defaults: Tweak default map size expressions.
+    - For 64-bit platforms, use an explicit UL suffix on one factor to avoid
+      overflow.
+    - For 32-bit platforms, avoid tying up quite so much address space, since
+      opening a pair of databases is a distinct possibility.
+    - Generally parenthesize expressions per best macro practice.
+
+ -- Aaron M. Ucko <ucko at debian.org>  Mon, 07 Sep 2020 21:15:02 -0400
+
 ncbi-blast+ (2.10.0-2) unstable; urgency=high
 
   * debian/patches/support_gcc10: Additionally tweak ncbifile.cpp to avoid


=====================================
debian/patches/tune_32bit_lmdb_defaults
=====================================
@@ -7,9 +7,9 @@ Index: b/c++/include/objtools/blast/seqdb_writer/writedb_lmdb.hpp
  BEGIN_NCBI_SCOPE
  
 +#if NCBI_PLATFORM_BITS >= 64
-+#  define NCBI_WRITEDB_DEFAULT_MAP_SIZE 300 * 1000 * 1000 * 1000
++#  define NCBI_WRITEDB_DEFAULT_MAP_SIZE (300UL * 1000 * 1000 * 1000)
 +#else
-+#  define NCBI_WRITEDB_DEFAULT_MAP_SIZE 1000 * 1000 * 1000
++#  define NCBI_WRITEDB_DEFAULT_MAP_SIZE (750 * 1000 * 1000)
 +#endif
  
  /// This class supports creation of a string accession to integer OID



View it on GitLab: https://salsa.debian.org/med-team/ncbi-blastplus/-/commit/e46881b79153db2f10891dbb81fef89844ba1ab8

-- 
View it on GitLab: https://salsa.debian.org/med-team/ncbi-blastplus/-/commit/e46881b79153db2f10891dbb81fef89844ba1ab8
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200908/f8ee5b86/attachment-0001.html>


More information about the debian-med-commit mailing list