don't compress use table records anymore
authorArt Cancro <ajc@citadel.org>
Tue, 13 Jun 2023 19:40:55 +0000 (10:40 -0900)
committerArt Cancro <ajc@citadel.org>
Tue, 13 Jun 2023 19:40:55 +0000 (10:40 -0900)
citadel/Makefile
citadel/server/database.c

index 3772a1815f2f6e6aeb4c19ebfcd064f1142eb186..91e951893ddda29017a55f620e04d1d9a44ff637 100644 (file)
@@ -10,7 +10,7 @@
 # config.mk is generated by ./configure
 include config.mk
 
-all := citserver setup ctdlmigrate sendcommand citmail chkpw chkpwd #ctdl3264
+all := citserver setup ctdlmigrate sendcommand citmail chkpw chkpwd ctdl3264
 all: $(all)
 
 citserver: server/*.c server/modules/*/*.c config.mk server/*.h
index 7009cc0675468a9e5647b5076a2571c288ca7e93..d961f8ebfaab4f467d02aba34d783ae0afb08b75 100644 (file)
@@ -393,9 +393,9 @@ int cdb_store(int cdb, const void *ckey, int ckeylen, void *cdata, int cdatalen)
        ddata.size = cdatalen;
        ddata.data = cdata;
 
-       // "visit" and "usetable" records are numerous and have big, mostly-empty string buffers in them.
+       // "visit" records are numerous and have big, mostly-empty string buffers in them.
        // If we compress these we can get them down to 1% of their size most of the time.
-       if ((cdb == CDB_VISIT) || (cdb == CDB_USETABLE)) {
+       if (cdb == CDB_VISIT) {
                compressing = 1;
                zheader.magic = COMPRESS_MAGIC;
                zheader.uncompressed_len = cdatalen;