forked from ravendb/ravendb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RavenDB-21412 missing handling of total Queue Sink tasks
- Loading branch information
1 parent
b2b1de1
commit ae74d22
Showing
5 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/Raven.Server/Monitoring/Snmp/Objects/Database/5.1/5.1.11/TotalNumberOfQueueSinkTasks.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Raven.Server.ServerWide; | ||
using Raven.Server.ServerWide.Context; | ||
|
||
namespace Raven.Server.Monitoring.Snmp.Objects.Database; | ||
|
||
public class TotalNumberOfQueueSinkTasks : OngoingTasksBase | ||
{ | ||
public TotalNumberOfQueueSinkTasks(ServerStore serverStore) | ||
: base(serverStore, SnmpOids.Databases.General.TotalNumberOfQueueSinkTasks) | ||
{ | ||
} | ||
|
||
protected override int GetCount(TransactionOperationContext context, RawDatabaseRecord database) | ||
{ | ||
return GetNumberOfQueueSinks(database); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters