rename files

This commit is contained in:
Shengliang Guan 2022-01-12 22:20:29 +08:00
parent ffe8763287
commit ba42f8cd93
4 changed files with 10 additions and 19 deletions

View File

@ -18,15 +18,13 @@
#include "os.h" #include "os.h"
#include "taosdef.h"
#include "taoserror.h" #include "taoserror.h"
#include "tlog.h"
#include "tglobal.h"
#include "tfs.h"
#include "tcoding.h" #include "tcoding.h"
#include "tfs.h"
#ifdef __cplusplus #include "tglobal.h"
extern "C" { #include "thash.h"
#endif #include "tlog.h"
extern int fsDebugFlag; extern int fsDebugFlag;

View File

@ -13,13 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "os.h" #define _DEFAULT_SOURCE
#include "tfsInt.h"
#include "taosdef.h"
#include "taoserror.h"
#include "tfs.h"
#include "tfsint.h"
#include "thash.h"
#define TMPNAME_LEN (TSDB_FILENAME_LEN * 2 + 32) #define TMPNAME_LEN (TSDB_FILENAME_LEN * 2 + 32)

View File

@ -14,7 +14,7 @@
*/ */
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include "tfsint.h" #include "tfsInt.h"
SDisk *tfsNewDisk(int32_t level, int32_t id, const char *dir) { SDisk *tfsNewDisk(int32_t level, int32_t id, const char *dir) {
SDisk *pDisk = calloc(1, sizeof(SDisk)); SDisk *pDisk = calloc(1, sizeof(SDisk));

View File

@ -12,11 +12,9 @@
* You should have received a copy of the GNU Affero General Public License * You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "os.h"
#include "taosdef.h" #define _DEFAULT_SOURCE
#include "taoserror.h" #include "tfsInt.h"
#include "tfsint.h"
#define tfsLockTier(pTier) pthread_spin_lock(&((pTier)->lock)) #define tfsLockTier(pTier) pthread_spin_lock(&((pTier)->lock))
#define tfsUnLockTier(pTier) pthread_spin_unlock(&((pTier)->lock)) #define tfsUnLockTier(pTier) pthread_spin_unlock(&((pTier)->lock))