[mapguide-trac] #202: Daily log archiving failing to archive on
a daily basis
MapGuide Open Source
trac_mapguide at osgeo.org
Tue Jun 12 13:39:45 EDT 2007
#202: Daily log archiving failing to archive on a daily basis
-------------------------+--------------------------------------------------
Reporter: ronnielouie | Owner: ronnielouie
Type: defect | Status: closed
Priority: medium | Milestone: 1.2
Component: Server | Version: 1.2.0
Severity: major | Resolution: fixed
Keywords: | External_id: 942338
-------------------------+--------------------------------------------------
Changes (by ronnielouie):
* status: assigned => closed
* resolution: => fixed
Comment:
In an attempt to optimize the archiving check, the file modified timestamp
would be checked for every 10th log message written. However, this
applies to the overall number of log messages, not for the entries for
each individual log. Thus, if a specific log is supposed to be archived
daily, and if the daily boundary is crossed, and it is divisible by 10,
then the log would be archived. Otherwise no archiving is performed.
Unfortunately, this logic can result in several days (or other specified
archive interval) to pass before an archive may be created.
To fix this, and to make the timestamp check less expensive, the timestamp
will be cached, and the need for archive check will be performed for every
log message. When the log is archived, the cache will be updated so that
logs can be archived at the specified interval.
Fixed by submission[[BR]]
http://trac.osgeo.org/mapguide/changeset/1810 and
http://trac.osgeo.org/mapguide/changeset/1813
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/202#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list