VOL-1894 : Disable forced data reconcile from getDevice()
- A forced reconcile may result in long running calls such
as for generating device graphs which refers to this method
Change-Id: Ic7a826726d90669ce31b81bcf374a1ce2e7eabcb
diff --git a/rw_core/core/device_agent.go b/rw_core/core/device_agent.go
index 89b1fe9..23a6ab0 100755
--- a/rw_core/core/device_agent.go
+++ b/rw_core/core/device_agent.go
@@ -129,7 +129,7 @@
func (agent *DeviceAgent) getDevice() (*voltha.Device, error) {
agent.lockDevice.RLock()
defer agent.lockDevice.RUnlock()
- if device := agent.clusterDataProxy.Get(context.Background(), "/devices/"+agent.deviceId, 0, true, ""); device != nil {
+ if device := agent.clusterDataProxy.Get(context.Background(), "/devices/"+agent.deviceId, 0, false, ""); device != nil {
if d, ok := device.(*voltha.Device); ok {
cloned := proto.Clone(d).(*voltha.Device)
return cloned, nil