Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 5a73bcf

Browse files
author
Aaron Tian
committed
Change logging & header files
1 parent c6564d9 commit 5a73bcf

File tree

3 files changed

+35
-16
lines changed

3 files changed

+35
-16
lines changed

Diff for: src/logging/log_util.cpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
/*-------------------------------------------------------------------------
2-
*
3-
* logger.h
4-
* file description
5-
*
6-
* Copyright(c) 2015, CMU
7-
*
8-
* /peloton/src/backend/logging/logging_util.cpp
9-
*
10-
*-------------------------------------------------------------------------
11-
*/
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Peloton
4+
//
5+
// log_til.cpp
6+
//
7+
// Identification: src/logging/log_til.cpp
8+
//
9+
// Copyright (c) 2015-18, Carnegie Mellon University Database Group
10+
//
11+
//===----------------------------------------------------------------------===//
1212

1313
#include <sys/stat.h>
1414
#include <dirent.h>

Diff for: src/logging/wal_recovery.cpp

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Peloton
4+
//
5+
// wal_recovery.cpp
6+
//
7+
// Identification: src/logging/wal_recovery.cpp
8+
//
9+
// Copyright (c) 2015-18, Carnegie Mellon University Database Group
10+
//
11+
//===----------------------------------------------------------------------===//
112

2-
#include <include/catalog/catalog.h>
313
#include "index/index_factory.h"
414

15+
#include "catalog/catalog.h"
516
#include "catalog/index_catalog.h"
617
#include "catalog/column_catalog.h"
718
#include "catalog/table_catalog.h"

Diff for: src/threadpool/logger_queue_pool.cpp

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Peloton
4+
//
5+
// logger_queue_pool.cpp
6+
//
7+
// Identification: src/threadpool/logger_queue_pool.cpp
8+
//
9+
// Copyright (c) 2015-18, Carnegie Mellon University Database Group
10+
//
11+
//===----------------------------------------------------------------------===//
12+
113
#include "threadpool/logger_queue_pool.h"
214
#include "common/container/lock_free_queue.h"
315
#include "logging/wal_logger.h"
416
#include <exception>
517

6-
718
namespace peloton{
819
namespace threadpool{
920

10-
11-
1221
void LoggerFunc(std::atomic_bool *is_running, LoggerQueue *logger_queue) {
13-
LOG_INFO("aaron: LoggerFunc");
1422
constexpr auto kMinPauseTime = std::chrono::microseconds(1);
1523
constexpr auto kMaxPauseTime = std::chrono::microseconds(1000);
1624
auto pause_time = kMinPauseTime;

0 commit comments

Comments
 (0)