You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
replace header guards with #pragma once
This commit is contained in:
@ -17,8 +17,7 @@
|
||||
|
||||
|
||||
|
||||
#ifndef APPENDTASK_H_
|
||||
#define APPENDTASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class AppendTask : public PosixTask
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#ifndef CACHE_H_
|
||||
#define CACHE_H_
|
||||
#pragma once
|
||||
|
||||
/* PrefixCache manages the cache for one prefix managed by SM.
|
||||
Cache is a map of prefix -> Cache, and holds the items
|
||||
@ -122,4 +121,3 @@ class Cache : public boost::noncopyable , public ConfigListener
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef CLIENTREQUESTPROCESSOR_H_
|
||||
#define CLIENTREQUESTPROCESSOR_H_
|
||||
#pragma once
|
||||
|
||||
#include "ThreadPool.h"
|
||||
#include <sys/types.h>
|
||||
@ -42,4 +41,3 @@ class ClientRequestProcessor : public boost::noncopyable
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef CLOUDSTORAGE_H_
|
||||
#define CLOUDSTORAGE_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <boost/shared_array.hpp>
|
||||
@ -58,4 +57,3 @@ class CloudStorage
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef CONFIG_H_
|
||||
#define CONFIG_H_
|
||||
#pragma once
|
||||
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
@ -73,4 +72,3 @@ class Config : public boost::noncopyable
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef COPYTASK_H_
|
||||
#define COPYTASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class CopyTask : public PosixTask
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#ifndef DOWNLOADER_H_
|
||||
#define DOWNLOADER_H_
|
||||
#pragma once
|
||||
|
||||
#include "ThreadPool.h"
|
||||
#include "CloudStorage.h"
|
||||
@ -113,4 +112,3 @@ class Downloader : public ConfigListener
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef IOCOORDINATOR_H_
|
||||
#define IOCOORDINATOR_H_
|
||||
#pragma once
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
@ -133,4 +132,3 @@ class IOCoordinator : public boost::noncopyable
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef LIST_DIRECTORYTASK_H_
|
||||
#define LIST_DIRECTORYTASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
#include <string>
|
||||
@ -41,4 +40,3 @@ class ListDirectoryTask : public PosixTask
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#ifndef LOCALSTORAGE_H_
|
||||
#define LOCALSTORAGE_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "CloudStorage.h"
|
||||
@ -59,4 +58,3 @@ class LocalStorage : public CloudStorage
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#ifndef METADATAFILE_H_
|
||||
#define METADATAFILE_H_
|
||||
#pragma once
|
||||
|
||||
#include "Config.h"
|
||||
#include "SMLogging.h"
|
||||
@ -142,4 +141,3 @@ class MetadataFile
|
||||
|
||||
}
|
||||
|
||||
#endif /* METADATAFILE_H_ */
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef OPENTASK_H_
|
||||
#define OPENTASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class OpenTask : public PosixTask
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#ifndef OWNERSHIP_H_
|
||||
#define OWNERSHIP_H_
|
||||
#pragma once
|
||||
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
@ -77,4 +76,3 @@ inline bool Ownership::sharedFS()
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -17,8 +17,7 @@
|
||||
|
||||
|
||||
|
||||
#ifndef PINGTASK_H_
|
||||
#define PINGTASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class PingTask : public PosixTask
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -17,8 +17,7 @@
|
||||
|
||||
|
||||
|
||||
#ifndef POSIX_TASK_H_
|
||||
#define POSIX_TASK_H_
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <sys/types.h>
|
||||
@ -66,4 +65,3 @@ class PosixTask
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#ifndef PREFIXCACHE_H_
|
||||
#define PREFIXCACHE_H_
|
||||
#pragma once
|
||||
|
||||
/* PrefixCache manages the cache for one prefix managed by SM.
|
||||
Cache is a map of prefix -> PrefixCache, and holds the items
|
||||
@ -167,4 +166,3 @@ class PrefixCache : public boost::noncopyable
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -17,8 +17,7 @@
|
||||
|
||||
|
||||
|
||||
#ifndef PROCESS_TASK_H_
|
||||
#define PROCESS_TASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "ThreadPool.h"
|
||||
|
||||
@ -49,4 +48,3 @@ class ProcessTask : public ThreadPool::Job
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -17,8 +17,7 @@
|
||||
|
||||
|
||||
|
||||
#ifndef READTASK_H_
|
||||
#define READTASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class ReadTask : public PosixTask
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#ifndef REPLICATOR_H_
|
||||
#define REPLICATOR_H_
|
||||
#pragma once
|
||||
|
||||
//#include "ThreadPool.h"
|
||||
#include "MetadataFile.h"
|
||||
@ -76,4 +75,3 @@ class Replicator
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef S3STORAGE_H_
|
||||
#define S3STORAGE_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
@ -95,4 +94,3 @@ class S3Storage : public CloudStorage
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef SM_LOGGING_H_
|
||||
#define SM_LOGGING_H_
|
||||
#pragma once
|
||||
|
||||
#include <syslog.h>
|
||||
#include <boost/thread.hpp>
|
||||
@ -43,4 +42,3 @@ class SMLogging
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -17,8 +17,7 @@
|
||||
|
||||
|
||||
|
||||
#ifndef STORAGEMANGER_H_
|
||||
#define STORAGEMANGER_H_
|
||||
#pragma once
|
||||
|
||||
#include "ClientRequestProcessor.h"
|
||||
#include "messageFormat.h"
|
||||
@ -79,4 +78,3 @@ private:
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef STATTASK_H_
|
||||
#define STATTASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class StatTask : public PosixTask
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -17,8 +17,7 @@
|
||||
|
||||
|
||||
|
||||
#ifndef SYNCTASK_H_
|
||||
#define SYNCTASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class SyncTask : public PosixTask
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef SYNCHRONIZER_H_
|
||||
#define SYNCHRONIZER_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
@ -138,4 +137,3 @@ class Synchronizer : public boost::noncopyable , public ConfigListener
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef SM_THREADPOOL_H_
|
||||
#define SM_THREADPOOL_H_
|
||||
#pragma once
|
||||
|
||||
#include <deque>
|
||||
#include <set>
|
||||
@ -91,4 +90,3 @@ class ThreadPool : public boost::noncopyable
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef TRUNCATETASK_H_
|
||||
#define TRUNCATETASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class TruncateTask : public PosixTask
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -16,8 +16,7 @@
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#ifndef UNLINKTASK_H_
|
||||
#define UNLINKTASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class UnlinkTask : public PosixTask
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -15,8 +15,7 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
#ifndef UTILITIES_H_
|
||||
#define UTILITIES_H_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
@ -85,4 +84,3 @@ class SharedCloser
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -17,8 +17,7 @@
|
||||
|
||||
|
||||
|
||||
#ifndef WRITETASK_H_
|
||||
#define WRITETASK_H_
|
||||
#pragma once
|
||||
|
||||
#include "PosixTask.h"
|
||||
|
||||
@ -38,4 +37,3 @@ class WriteTask : public PosixTask
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user