SF.net SVN: mahogany: [7254] trunk/M/lib/dspam/src/hash_drv.c

[email protected]
Newsgroups gmane.mail.mahogany.cvs
Message-ID <[email protected]>
Revision: 7254
          http://svn.sourceforge.net/mahogany/?rev=7254&view=rev
Author:   vadz
Date:     2007-04-28 07:17:13 -0700 (Sat, 28 Apr 2007)

Log Message:
-----------
disable locking code completely, it currently doesn't work and just creates unnecessary .lock files

Modified Paths:
--------------
    trunk/M/lib/dspam/src/hash_drv.c

Modified: trunk/M/lib/dspam/src/hash_drv.c
===================================================================
--- trunk/M/lib/dspam/src/hash_drv.c	2007-04-27 13:04:45 UTC (rev 7253)
+++ trunk/M/lib/dspam/src/hash_drv.c	2007-04-28 14:17:13 UTC (rev 7254)
@@ -276,6 +276,11 @@
   struct _hash_drv_storage *s,
   const char *username)
 {
+  /* FIXME-WIN32: use a global mutex for locking */
+#ifdef WIN32
+  CTX; s; username;
+  return 0;
+#else
   char filename[MAX_FILENAME_LENGTH];
   int r;
 
@@ -293,6 +298,7 @@
     LOG(LOG_ERR, ERR_IO_LOCK, filename, r, strerror(errno));
   }
   return r;
+#endif
 }
 
 int
@@ -300,6 +306,11 @@
   struct _hash_drv_storage *s, 
   const char *username)
 {
+  /* FIXME-WIN32: use a global mutex for locking */
+#ifdef WIN32
+  s; username;
+  return 0;
+#else
   int r;
 
   if (username == NULL)
@@ -313,6 +324,7 @@
   }
 
   return r;
+#endif
 }
 
 int _hash_drv_open(


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.