Initialization of m_lastFseq of type uint64_t with -1 value in the constructor of castor::tape::tapeserver::daemon::TapeWriteSingleThread
The variable m_lastFseq is initialized with -1 see line 45, which causes setting its value to max value of the uint64_t type equal to std::numeric_limits<uint64_t>::max()
The m_lastFseq should be initialized with 0 value.