files: remove FILE_USE_TRACKID flag

Once it was optional but as it no longer is it is no longer useful.

Remove it.
pull/4393/head
Victor Julien 6 years ago
parent f9155aa121
commit b82e71b95e

@ -872,7 +872,6 @@ int FileOpenFileWithId(FileContainer *ffc, const StreamingBufferConfig *sbcfg,
return -1;
ff->file_track_id = track_id;
ff->flags |= FILE_USE_TRACKID;
return 0;
}

@ -47,7 +47,6 @@
#define FILE_STORED BIT_U16(11)
#define FILE_NOTRACK BIT_U16(12) /**< track size of file */
#define FILE_USE_DETECT BIT_U16(13) /**< use content_inspected tracker */
#define FILE_USE_TRACKID BIT_U16(14) /**< File::file_track_id field is in use */
#define FILE_HAS_GAPS BIT_U16(15)
typedef enum FileState_ {
@ -67,8 +66,7 @@ typedef struct File_ {
FileState state;
StreamingBuffer *sb;
uint64_t txid; /**< tx this file is part of */
uint32_t file_track_id; /**< id used by protocol parser. Optional
* only used if FILE_USE_TRACKID flag set */
uint32_t file_track_id; /**< id used by protocol parser */
uint32_t file_store_id; /**< id used in store file name file.<id> */
int fd; /**< file descriptor for filestore, not
open if equal to -1 */

Loading…
Cancel
Save