Skip to content

Commit

Permalink
RavenDB-23220 - fixed compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha-kotler committed Jan 21, 2025
1 parent 1a713f3 commit ab7a2b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Raven.Server/Documents/CountersStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2648,13 +2648,13 @@ private static IEnumerable<CounterGroupItemMetadata> TableValueToCounterGroupIte

yield return new CounterGroupItemMetadata(null, null, null, null, null, etag, size);

LazyStringValue CounterGroupKey()
unsafe LazyStringValue CounterGroupKey()
{
var p = tvr.Read((int)CountersTable.CounterKey, out var size);
return context.GetLazyString(p, size);
}

LazyStringValue ExtractDocId()
unsafe LazyStringValue ExtractDocId()
{
var p = tvr.Read((int)CountersTable.CounterKey, out var size);
int sizeOfDocId = 0;
Expand All @@ -2667,14 +2667,14 @@ LazyStringValue ExtractDocId()
return context.GetLazyString(p, sizeOfDocId);
}

IDisposable ToDocumentIdPrefix(LazyStringValue documentId, out Slice documentIdPrefix)
unsafe IDisposable ToDocumentIdPrefix(LazyStringValue documentId, out Slice documentIdPrefix)
{
var p = tvr.Read((int)CountersTable.CounterKey, out _);

return Slice.From(context.Allocator, p, documentId.Size + 1, out documentIdPrefix);
}

IDisposable ToKey(Slice documentIdPrefix, LazyStringValue counterName, out LazyStringValue key)
unsafe IDisposable ToKey(Slice documentIdPrefix, LazyStringValue counterName, out LazyStringValue key)
{
using (DocumentIdWorker.GetLower(context.Allocator, counterName, out var counterNameSlice))
{
Expand All @@ -2686,7 +2686,7 @@ IDisposable ToKey(Slice documentIdPrefix, LazyStringValue counterName, out LazyS
}
}

LazyStringValue ToLuceneKey(LazyStringValue documentId, LazyStringValue counterName)
unsafe LazyStringValue ToLuceneKey(LazyStringValue documentId, LazyStringValue counterName)
{
using (DocumentIdWorker.GetLower(context.Allocator, counterName, out var counterNameSlice))
{
Expand Down

0 comments on commit ab7a2b5

Please sign in to comment.