minor style changes

This commit is contained in:
hjxilinx 2019-10-11 15:08:16 +08:00
parent fdfd05f27d
commit c26f9ff6af
5 changed files with 16 additions and 11 deletions

View File

@ -23,7 +23,6 @@ extern "C" {
#include "taosmsg.h"
#include "tsdb.h"
extern uint32_t sdbDebugFlag;
extern short sdbPeerPort;
extern short sdbSyncPort;
extern int sdbMaxNodes;

View File

@ -49,10 +49,10 @@ void *taosAddDataIntoCache(void *handle, char *key, char *pData, int dataSize, i
* if it is referenced by other object, it will be remain in cache
* @param handle cache object
* @param data not the key, actually referenced data
* @param remove force model, reduce the ref count and move the data into
* @param _remove force model, reduce the ref count and move the data into
* pTrash
*/
void taosRemoveDataFromCache(void *handle, void **data, bool remove);
void taosRemoveDataFromCache(void *handle, void **data, bool _remove);
/**
* update data in cache

View File

@ -28,7 +28,7 @@ extern "C" {
#define DEFAULT_PAGE_SIZE 16384 // 16k larger than the SHistoInfo
#define MIN_BUFFER_SIZE (1 << 19)
#define MAX_TMPFILE_PATH_LENGTH 512
#define MAX_TMPFILE_PATH_LENGTH PATH_MAX
#define INITIAL_ALLOCATION_BUFFER_SIZE 64
// forward declare

View File

@ -12,9 +12,12 @@
* 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/>.
*/
#ifndef TDENGINE_TKEY_H
#define TDENGINE_TKEY_H
#ifndef _TAOS_KEY_H_
#define _TAOS_KEY_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <stdint.h>
@ -27,4 +30,8 @@ char *base64_encode(const unsigned char *value, int vlen);
char *taosDesEncode(int64_t key, char *src, int len);
char *taosDesDecode(int64_t key, char *src, int len);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -53,8 +53,7 @@ void setNullN(char *val, int32_t type, int32_t bytes, int32_t numOfElems);
void assignVal(char *val, char *src, int32_t len, int32_t type);
void tsDataSwap(void *pLeft, void *pRight, int32_t type, int32_t size);
// variant, each number/string/field_id has a corresponding struct during
// parsing sql
// variant, each number/string/field_id has a corresponding struct during parsing sql
typedef struct tVariant {
uint32_t nType;
int32_t nLen; // only used for string, for number, it is useless