From 9a72955d0b08a0a1b3116d9eaba993c77c84d8c1 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Mon, 22 Oct 2007 21:47:06 +0000
Subject: [PATCH] Added the ability to retrieve the number of entries in the entire subordinate subtree to the numSubordinates method in the backend API. Changed the replication code to use numSubordinates of the entires subtree to determine how many entries will be exported and imported during initialization.
---
opends/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProvider.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProvider.java b/opends/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProvider.java
index bf4ca21..6e1cf64 100644
--- a/opends/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProvider.java
+++ b/opends/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProvider.java
@@ -119,7 +119,7 @@
try
{
- long count = backend.numSubordinates(entry.getDN());
+ long count = backend.numSubordinates(entry.getDN(), false);
if(count >= 0)
{
AttributeValue value =
@@ -151,7 +151,7 @@
try
{
- return backend.numSubordinates(entry.getDN()) >= 0;
+ return backend.numSubordinates(entry.getDN(), false) >= 0;
}
catch(DirectoryException de)
{
@@ -177,7 +177,7 @@
try
{
- long count = backend.numSubordinates(entry.getDN());
+ long count = backend.numSubordinates(entry.getDN(), false);
if(count >= 0)
{
return Long.parseLong(value.getNormalizedStringValue()) == count;
--
Gitblit v1.10.0