SHP provider only does SHP compression in the destructor of last live SHP connection.
Now SHP provider only does SHP compression in the destructor of last live SHP connection. Assume that there are two SHP connection to two difference SHP folder at the same time, and user delete something via the first SHP connection, and then close the first SHP connection, but remains the second SHP connection live. So the first SHP connection have no chance to do SHP compression any more, even the user close the second compression later.
Change History
(4)
Component: |
FDO API → SHP Provider
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
As Dan Stoica said:
The situation can be fixed easily by creating a global array of strings that holds the open connections (i.e. the folder names). Each time a connection is open a new entry is added. Each time a connection is closed, do a look up in the array and: --Remove a matching entry --If no one left with the same name then do compression if the case.