Revision: 14576
Author: adrian.chadd
Date: Sat Apr 10 19:44:28 2010
Log: Issue #94 - just compile truncate by default for now. The store io
layer
chooses whether to use unlink() or truncate().
http://code.google.com/p/lusca-cache/source/detail?r=14576
Modified:
/branches/LUSCA_HEAD/libasyncio/aiops_win32.c
=======================================
--- /branches/LUSCA_HEAD/libasyncio/aiops_win32.c Sat Apr 10 18:41:22 2010
+++ /branches/LUSCA_HEAD/libasyncio/aiops_win32.c Sat Apr 10 19:44:28 2010
@@ -93,9 +93,7 @@
static void squidaio_do_close(squidaio_request_t *);
static void squidaio_do_stat(squidaio_request_t *);
static void squidaio_do_unlink(squidaio_request_t *);
-#if USE_TRUNCATE
static void squidaio_do_truncate(squidaio_request_t *);
-#endif
#if AIO_OPENDIR
static void *squidaio_do_opendir(squidaio_request_t *);
#endif
@@ -385,11 +383,9 @@
case _AIO_OP_UNLINK:
squidaio_do_unlink(request);
break;
-#if USE_TRUNCATE
case _AIO_OP_TRUNCATE:
squidaio_do_truncate(request);
break;
-#endif
#if AIO_OPENDIR /* Opendir not implemented yet */
case _AIO_OP_OPENDIR:
squidaio_do_opendir(request);
@@ -756,7 +752,6 @@
}
-#if USE_TRUNCATE
int
squidaio_truncate(const char *path, off_t length, squidaio_result_t *
resultp)
{
@@ -780,9 +775,6 @@
requestp->ret = truncate(requestp->path, requestp->offset);
requestp->err = errno;
}
-
-#endif
-
#if AIO_OPENDIR
/* XXX squidaio_opendir NOT implemented yet.. */
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.