Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892188
PhabricatorDaemonLockLogGarbageCollector.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
618 B
Referenced Files
None
Subscribers
None
PhabricatorDaemonLockLogGarbageCollector.php
View Options
<?php
final
class
PhabricatorDaemonLockLogGarbageCollector
extends
PhabricatorGarbageCollector
{
const
COLLECTORCONST
=
'daemon.lock-log'
;
public
function
getCollectorName
(
)
{
return
pht
(
'Lock Logs'
)
;
}
public
function
getDefaultRetentionPolicy
(
)
{
return
0
;
}
protected
function
collectGarbage
(
)
{
$table
=
new
PhabricatorDaemonLockLog
(
)
;
$conn
=
$table
->
establishConnection
(
'w'
)
;
queryfx
(
$conn
,
'DELETE FROM %T WHERE dateCreated < %d LIMIT 100'
,
$table
->
getTableName
(
)
,
$this
->
getGarbageEpoch
(
)
)
;
return
(
$conn
->
getAffectedRows
(
)
==
100
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 16:23 (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126444
Default Alt Text
PhabricatorDaemonLockLogGarbageCollector.php (618 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment