-- fix issues with TFileTransport
authorAditya Agarwal <aditya@apache.org>
Tue, 10 Apr 2007 23:15:04 +0000 (23:15 +0000)
committerAditya Agarwal <aditya@apache.org>
Tue, 10 Apr 2007 23:15:04 +0000 (23:15 +0000)
commit89b85f87d8b222c72c864b68f6d820d7f4b5daa7
tree3cc1bfbb3af2c936f36d4d33a8bcd9850072b0aa
parentc10bba1e1628748c8902e6a465d39ab1285b92aa
-- fix issues with TFileTransport

Summary:
- Make sure that buffers are always emptied when destructor is called (or when file is closed)
- make flush a no-op if file is not open
- dont allow new events to be enqueued if the file is in the process of being closed

Reviewed By: slee, jwang

Test Plan: tested with building search indices on top of thrift logs

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665094 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TFileTransport.cpp