- if ((ret = pthread_create(&indexer_thread_tid, &attr, indexer_thread, NULL) != 0))
- {
- lprintf(CTDL_ALERT, "Can't create indexer thread: %s\n",
- strerror(ret));
+ if ((ret = pthread_create(&indexer_thread_tid, &attr, indexer_thread, NULL) != 0)) {
+ lprintf(CTDL_ALERT, "Can't create thread: %s\n", strerror(ret));
+ }
+
+ if ((ret = pthread_create(&checkpoint_thread_tid, &attr, checkpoint_thread, NULL) != 0)) {
+ lprintf(CTDL_ALERT, "Can't create thread: %s\n", strerror(ret));